/**
 * 
 */
package com.iknight.mgr.core.shiro;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @author Jeryzym
 * 
 */
public class MgrToken extends UsernamePasswordToken {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String userId;
	private String encryptPwd;
	private String userSalt;

	/**
	 * @return the userId
	 */
	public String getUserId() {
		return userId;
	}

	/**
	 * @param userId
	 *            the userId to set
	 */
	public void setUserId(String userId) {
		this.userId = userId;
	}

	/**
	 * @return the encryptPwd
	 */
	public String getEncryptPwd() {
		return encryptPwd;
	}

	/**
	 * @param encryptPwd
	 *            the encryptPwd to set
	 */
	public void setEncryptPwd(String encryptPwd) {
		this.encryptPwd = encryptPwd;
	}

	/**
	 * @return the userSalt
	 */
	public String getUserSalt() {
		return userSalt;
	}

	/**
	 * @param userSalt
	 *            the userSalt to set
	 */
	public void setUserSalt(String userSalt) {
		this.userSalt = userSalt;
	}

	/**
	 * @param userId
	 * @param encryptPwd
	 * @param userSalt
	 */
	public MgrToken(String userId, String encryptPwd, String userSalt) {
		super();
		this.userId = userId;
		this.encryptPwd = encryptPwd;
		this.userSalt = userSalt;
	}

	/**
	 * @param username
	 * @param password
	 * @param userId
	 * @param encryptPwd
	 * @param userSalt
	 */
	public MgrToken(String username, String password, String userId, String encryptPwd, String userSalt) {
		super(username, password);
		this.userId = userId;
		this.encryptPwd = encryptPwd;
		this.userSalt = userSalt;
	}

	/**
	 * @param username
	 * @param password
	 * @param host
	 * @param userId
	 * @param encryptPwd
	 * @param userSalt
	 */
	public MgrToken(String username, String password, String host, String userId, String encryptPwd, String userSalt) {
		super(username, password, host);
		this.userId = userId;
		this.encryptPwd = encryptPwd;
		this.userSalt = userSalt;
	}

	/**
	 * @param username
	 * @param password
	 * @param rememberMe
	 * @param userId
	 * @param encryptPwd
	 * @param userSalt
	 */
	public MgrToken(String username, String password, boolean rememberMe, String userId, String encryptPwd,
			String userSalt) {
		super(username, password, rememberMe);
		this.userId = userId;
		this.encryptPwd = encryptPwd;
		this.userSalt = userSalt;
	}

	/**
	 * @param username
	 * @param password
	 * @param rememberMe
	 * @param host
	 * @param userId
	 * @param encryptPwd
	 * @param userSalt
	 */
	public MgrToken(String username, String password, boolean rememberMe, String host, String userId, String encryptPwd,
			String userSalt) {
		super(username, password, rememberMe, host);
		this.userId = userId;
		this.encryptPwd = encryptPwd;
		this.userSalt = userSalt;
	}

}
